package com.dhcc.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dhcc.entity.ClientUserDepartmentPositionInstitution;
import com.dhcc.mapper.ClientUserDepartmentPositionInstitutionMapper;
import com.dhcc.service.ClientUserDepartmentPositionInstitutionService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class ClientUserDepartmentPositionInstitutionServiceImpl extends ServiceImpl<ClientUserDepartmentPositionInstitutionMapper, ClientUserDepartmentPositionInstitution> implements ClientUserDepartmentPositionInstitutionService {
    @Resource
    private ClientUserDepartmentPositionInstitutionMapper clientUserDepartmentPositionInstitutionMapper;
    @Override
    public Integer updateDepartmentAndPosition(String userId, String institutionId, String departmentId, String positionId) {
        return clientUserDepartmentPositionInstitutionMapper.updateDepartmentAndPosition(userId,institutionId,departmentId,positionId);
    }

    @Override
    public Integer add(String userId, String institutionId, String departmentId, String positionId) {
        return clientUserDepartmentPositionInstitutionMapper.add(userId,institutionId,departmentId,positionId);
    }

    @Override
    public ClientUserDepartmentPositionInstitution getDepartmentIdAndPoaitionId(String userId, String institutionId) {
        return clientUserDepartmentPositionInstitutionMapper.getDepartmentIdAndPoaitionId(userId,institutionId);
    }
}
